home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr25 / sio070.zip / SIOUSER.TXT < prev    next >
Text File  |  1993-05-03  |  38KB  |  896 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.                                      USERS MANUAL
  26.  
  27.               SIO.SYS and VSIO.SYS, Serial Communications Device Driver
  28.                for OS/2 V2 (and up) and its Virtual DOS Machines (VDM).
  29.  
  30.                         Copyright (c) 1993 by Raymond L. Gwinn
  31.                                  12469 Cavalier Drive
  32.                               Woodbridge, Virginia 22192
  33.                                  All Rights Reserved
  34.  
  35.                                     April 28, 1993
  36.  
  37.                               FidoNet address 1:265/104
  38.                                  CompuServe 72570,157
  39.                           Internet 72570.157@compuserve.com
  40.  
  41.                                   Data 703-494-0098
  42.                                (08:00am to 11:00am GMT)
  43.                                (03:00am to 06:00am EST)
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.                                                                           i
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.                                      INTRODUCTION
  71.  
  72.           SIO.SYS and VSIO.SYS are companion  device drivers for Version  2
  73.           (and up) of the OS/2 operating system.
  74.  
  75.           Both drivers (SIO/VSIO) have been coded with performance in mind,
  76.           possibly sacrificing some  compatibility.  For  this reason,  SIO
  77.           and VSIO are not exact replacements for the OS/2  drivers COM and
  78.           VCOM.   However, all serial communications programs tested by the
  79.           author work correctly using SIO/VSIO.
  80.  
  81.           This manual is intended for the SIO user.  A separate Application
  82.           Programmers manual is being written.
  83.  
  84.           This manual and the software distributed with it is provided with
  85.           no guarantees.  Use it at your own risk.
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.                                                                          ii
  94.  
  95.                                   TABLE OF CONTENTS
  96.  
  97.  
  98.           WHAT IS SIO . . . . . . . . . . . . . . . . . . . . . . . . .   1
  99.  
  100.           WHAT IS VSIO  . . . . . . . . . . . . . . . . . . . . . . . .   2
  101.  
  102.           GETTING STARTED . . . . . . . . . . . . . . . . . . . . . . .   3
  103.  
  104.           Installing SIO/VSIO . . . . . . . . . . . . . . . . . . . . .   3
  105.                Quick Start  . . . . . . . . . . . . . . . . . . . . . .   3
  106.  
  107.           COMMAND LINE OPTIONS  . . . . . . . . . . . . . . . . . . . .   4
  108.                COM1 thru COMn . . . . . . . . . . . . . . . . . . . . .   4
  109.                I/O port address . . . . . . . . . . . . . . . . . . . .   4
  110.                IRQ number . . . . . . . . . . . . . . . . . . . . . . .   4
  111.                Forced 16550A  . . . . . . . . . . . . . . . . . . . . .   4
  112.  
  113.           AUTOMATIC IRQ ASSIGNMENT  . . . . . . . . . . . . . . . . . .   5
  114.  
  115.           DOS SETTINGS  . . . . . . . . . . . . . . . . . . . . . . . .   6
  116.                SIO_Allow_Access_COMn  . . . . . . . . . . . . . . . . .   6
  117.                SIO_Virtualize_COM_Ports . . . . . . . . . . . . . . . .   6
  118.                SIO_Virtualize_16550A  . . . . . . . . . . . . . . . . .   6
  119.                SIO_Virtual_RTS_is_HS  . . . . . . . . . . . . . . . . .   6
  120.  
  121.           Differences between SIO/VSIO and COM/VCOM . . . . . . . . . .   7
  122.  
  123.           PROBLEMS AND SOLUTIONS  . . . . . . . . . . . . . . . . . . .   8
  124.                IRQ for a port appears to be wrong . . . . . . . . . . .   8
  125.                The modem will not initialize  . . . . . . . . . . . . .   8
  126.                WinFax does not work well  . . . . . . . . . . . . . . .   8
  127.  
  128.           IRQ SHARING ON ISA  . . . . . . . . . . . . . . . . . . . . .   9
  129.  
  130.           Appendix A, Hardware Port and IRQ Assignments . . . . . . .    10
  131.                Addresses and IRQs for COM1 and COM2 . . . . . . . . .    10
  132.                Defacto standard for COM3 and COM4 . . . . . . . . . .    10
  133.                Addresses and IRQ for COM3 through COM8 on the PS/2  .    10
  134.  
  135.           Appendix B, SIO Chips . . . . . . . . . . . . . . . . . . .    11
  136.                8250 . . . . . . . . . . . . . . . . . . . . . . . . .    11
  137.                8250A  . . . . . . . . . . . . . . . . . . . . . . . .    11
  138.                16450  . . . . . . . . . . . . . . . . . . . . . . . .    11
  139.                16C451 . . . . . . . . . . . . . . . . . . . . . . . .    12
  140.                16550 (Non A . . . . . . . . . . . . . . . . . . . . .    12
  141.                16550A . . . . . . . . . . . . . . . . . . . . . . . .    12
  142.                16550AF  . . . . . . . . . . . . . . . . . . . . . . .    12
  143.                16550AFN . . . . . . . . . . . . . . . . . . . . . . .    12
  144.                16550s Made by Western Digital . . . . . . . . . . . .    13
  145.                16C551 . . . . . . . . . . . . . . . . . . . . . . . .    13
  146.                16C552 . . . . . . . . . . . . . . . . . . . . . . . .    13
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.                                                                         iii
  155.  
  156.                16C554 . . . . . . . . . . . . . . . . . . . . . . . .    13
  157.                82510  . . . . . . . . . . . . . . . . . . . . . . . .    13
  158.  
  159.           Appendix C, Multi-Port Serial I/0 Cards . . . . . . . . . .    14
  160.                STB 4COM . . . . . . . . . . . . . . . . . . . . . . .    14
  161.  
  162.           INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . .    15
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.                                                                           1
  171.  
  172.                                      WHAT IS SIO
  173.  
  174.           SIO is  a Serial Input/Output  (SIO) communications  driver.   It
  175.           provides an interface between application programs and the serial
  176.           communications hardware.
  177.  
  178.           SIO had been designed  as a high performance replacement  for the
  179.           OS/2  device driver  COM.SYS.    SIO.SYS  does not  support  some
  180.           features  that are  provided  by COM.SYS.    In the  view of  the
  181.           author,  these features  are rarely  used and  they inhibit  good
  182.           performance on the vast majority of systems.  See the programmers
  183.           reference manual  for  information about  the  known  differences
  184.           between COM.SYS and SIO.SYS.
  185.  
  186.           SIO only works with 8250 (TYPE) serial I/O devices.  Such devices
  187.           include  the 8250A, 16450, 16550,  16550A and the  82510.  If you
  188.           have a PC  that is an IBM  or near compatible which has  a serial
  189.           communication  port, it is likely  that it contains  one of these
  190.           devices.  SIO  will identify the type  of serial devices that  it
  191.           finds at load time.
  192.  
  193.           Like other  Device  Drivers, SIO  will  do very  little  standing
  194.           alone.  There must be an application(s) program to use SIO before
  195.           you will gain benefit.
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.                                                                           2
  204.  
  205.                                      WHAT IS VSIO
  206.  
  207.           VSIO  is a Virtual Device  Driver (VDD).   Virtual device drivers
  208.           provide services  for DOS  programs executing under  OS/2.   Most
  209.           Virtual Device Drivers emulate  a specific hardware device and/or
  210.           BIOS service.   The primary job of a Virtual  Device Driver is to
  211.           convert   misbehaved   DOS   input/output   into   well   behaved
  212.           input/output.
  213.  
  214.           Using the protection mechanism  of the 386 (and up)  processor, a
  215.           Virtual Device Driver can instruct OS/2  to trap all input/output
  216.           for  given hardware  ports.   Once  trapped,  the Virtual  Device
  217.           Driver   (VDD)  appropriately  routes   information  to/from  the
  218.           Physical Device Driver (PDD) and to/from the DOS program.
  219.  
  220.           VSIO creates  a  virtual (imaginary)  16550A or  16450 (UART)  in
  221.           software.   VSIO does not emulate any  BIOS services.  All of the
  222.           hardware  registers of  the virtual  UART are simulated  by VSIO.
  223.           VSIO does not attempt  to simulate the timing of the  real UARTs.
  224.           DOS programs that depend on the timing of real hardware UARTs may
  225.           have problems executing under VSIO.
  226.  
  227.           All  DOS programs  that execute  under VSIO  should  have RTS/CTS
  228.           handshaking  enabled regardless of the baud rate.  Note that this
  229.           enabling  of RTS/CTS  handshaking is  independent of  the RTS/CTS
  230.           handshaking used by SIO.
  231.  
  232.           The virtualization (simulation) provided by  VSIO is not (and can
  233.           not  be) exact.  However,  most well written  DOS programs should
  234.           not have problems.
  235.  
  236.           VSIO  will only  work  with SIO  installed  and the  versions  of
  237.           SIO/VSIO must match.  If VSIO refuses to install, you most likely
  238.           have  a version  mismatch.   VSIO will  not work  with  any other
  239.           device driver like COM.SYS.
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.                                                                           3
  248.  
  249.                                    GETTING STARTED
  250.  
  251.           Installing SIO/VSIO
  252.  
  253.           SIO  is distributed  as a  ZIP file.   To extract  the individual
  254.           files  from the distribution file you need the program PKUNZIP or
  255.           an  equivalent.   PKUNZIP  is  a product  of  PKWARE  and can  be
  256.           downloaded from  almost any  bulletin  board system  (BBS).   You
  257.           probably already have PKUNZIP and know how to use it, otherwise I
  258.           doubt that  you would be reading  this.  When PKUNZIP  is used to
  259.           extract the various files, -AV should appear after each file name
  260.           as it is extracted.  In addition, the message:
  261.  
  262.                Authentic files Verified!
  263.  
  264.           should appear after the extraction process.  If this message does
  265.           not appear, or appears with a  name other than Raymond L.  Gwinn,
  266.           the file is not an original SIO distribution file.
  267.  
  268.           The  only file  that the  basic user  actually needs  is SIO.SYS.
  269.           Virtual  DOS machine (VDM) users  will also want  VSIO.SYS.  Copy
  270.           one  or  both  of  these  files  to  a  convenient  directory  or
  271.           subdirectory on your system.
  272.  
  273.           Quick Start
  274.  
  275.           Copy  SIO.SYS and  VSIO.SYS to  the root  directory of  your boot
  276.           drive or diskette.
  277.  
  278.           If you  are going to  use standard  communications ports,  either
  279.           COM1 or COM2 on an  ISA buss (AT or clone), or  COM1 through COM4
  280.           on a PS/2, then add the following line to your CONFIG.SYS file:
  281.  
  282.                DEVICE=SIO.SYS
  283.                DEVICE=VSIO.SYS
  284.  
  285.           Be sure to REMark out the COM.SYS and VCOM.SYS device  drivers if
  286.           they exist in your CONFIG.SYS.
  287.  
  288.           With the above  statements you will be able to  use standard COM1
  289.           and/or COM2 (if they exist) on any PC system know to the author.
  290.  
  291.           If your setup is more complex, you must read on.
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.                                                                           4
  300.  
  301.                                  COMMAND LINE OPTIONS
  302.  
  303.           The  command line options are  included in the  command line that
  304.           loads SIO  in the  CONFIG.SYS  file.   VSIO has  no command  line
  305.           options.  Command line options are usually grouped by port within
  306.           parenthesis.
  307.  
  308.           If you  use only COM1 and/or  COM2, at the standard  IRQ and port
  309.           addresses,  you will not need any command line options.  However,
  310.           up  to four serial communications  ports, COM1 thru  COM4, can be
  311.           specified at any base port address and any IRQ.   On PS/2 systems
  312.           and some  ISA  cards, SIO/VSIO  supports multiple  communications
  313.           devices sharing the same IRQ.
  314.  
  315.           The basic command line syntax is as follows:
  316.  
  317.                DEVICE=SIO.SYS (Cn, An, In, Ig, Fc) [(Cn, An, In, Ig, Fc)]
  318.  
  319.           Where
  320.                "Cn"  is the comm port number (1  thru 4) or the string COM1
  321.                thru COMn.
  322.  
  323.                "An" is a  hexadecimal number that defines the base hardware
  324.                I/O port address for the communications port.
  325.  
  326.                "In" is  an IRQ number (0  thru 15) or the  string IRQ0 thru
  327.                IRQ15.  Is  is best if one allows SIO  to determine the IRQ,
  328.                see AUTOMATIC IRQ ASSIGNMENT below.
  329.  
  330.                "Ig"  is an ignored parameter.   If exists for compatibility
  331.                with COM.SYS.
  332.  
  333.                "Fc" is the Forced 16550A chip parameter.  If an F is placed
  334.                in  this  position,  a  16550A  UART  chip  type  is  forced
  335.                regardless of the automatically detected chip type.
  336.  
  337.           For  a PC  with  COM1 and  COM2  of standard  configuration,  the
  338.           following command line will load SIO correctly:
  339.  
  340.                DEVICE=SIO.SYS (1, 3F8, 4) (2, 2f8, 3)
  341.  
  342.           A more readable, but identical, command line is:
  343.  
  344.                DEVICE=SIO.SYS (COM1,3F8,IRQ4) (COM2,2F8,IRQ3)
  345.  
  346.           Forcing a 16550A on COM1 would be as follows:
  347.  
  348.                DEVICE=SIO.SYS (COM1,3F8,IRQ4,,F) (COM2,2F8,IRQ3)
  349.  
  350.           In a similar manner,  up to four serial communications  ports can
  351.           be defined and supported by SIO and VSIO.
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.                                                                           5
  360.  
  361.  
  362.                                AUTOMATIC IRQ ASSIGNMENT
  363.  
  364.           SIO  will  automatically  locate the  IRQ  that  a  comm port  is
  365.           attached  to.   The  IRQ used  by SIO  for a  given comm  port is
  366.           assigned in the following manner:
  367.  
  368.           1 - If an IRQ is specified  in the SIO command line then that IRQ
  369.           is used.  However, SIO will  display a warning message if the IRQ
  370.           seems to be other than specified.
  371.  
  372.           2 -  If no  IRQ is  specified in  the command  line,  and if  SIO
  373.           detected the IRQ then the detected IRQ is used.
  374.  
  375.           3 - If no  IRQ is specified in the command, and  if SIO could NOT
  376.           detect  an IRQ then  the default IRQ  for the comm  port is used.
  377.           SIO will also display a warning message in this case.
  378.  
  379.           The following STYLE command  line is recommended for all  but the
  380.           most unusual systems.  That is, specify only the  port number for
  381.           those above COM2 (to tell SIO to support those ports) and let SIO
  382.           do the rest.
  383.  
  384.           DEVICE=SIO.SYS (COM3) (COM4)
  385.  
  386.           If you do not have  a COM3 or COM4, or if the mouse  is using the
  387.           only  comm port above COM2 then the following command line should
  388.           be used.
  389.  
  390.           DEVICE=SIO.SYS
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.                                                                           6
  399.  
  400.                                      DOS SETTINGS
  401.  
  402.           VSIO  gets  its operational  characteristics  from  DOS Settings.
  403.           Three basic DOS Settings are provided.  They specify the  type of
  404.           access (if any) that a DOS program is to have  to a communication
  405.           port that SIO controls.
  406.  
  407.           All of the  DOS Settings default  to what  most users should  use
  408.           most of  the time (which is  ON).  Also, all of  the DOS Settings
  409.           are prefixed with SIO_.
  410.  
  411.           The provided DOS Settings and their meaning follow:
  412.  
  413.                "SIO_Allow_Access_COMn" (where  n is  1 thru  4).  This  DOS
  414.                setting defaults  to ON.  If this  setting is turned OFF for
  415.                any or all of the ports, the DOS program will not be allowed
  416.                any access to that port(s).
  417.  
  418.                "SIO_Virtualize_COM_Ports"  This Dos setting defaults  to ON
  419.                and it applies to  all communications ports used by  the DOS
  420.                session.  When ON, this DOS  setting means VSIO is to act as
  421.                an interface between the SIO and the DOS program.  When OFF,
  422.                the DOS program is given direct access to the hardware ports
  423.                of the UART(s).
  424.  
  425.                "SIO_Virtualize_16550A"  This DOS setting defaults to ON and
  426.                it  applies to  all  communications ports  used  by the  DOS
  427.                session.  When ON, VSIO will  simulate a 16550A.  When  OFF,
  428.                VSIO will simulate a 16450.   Some DOS programs may not work
  429.                when  a 16550A is simulated.   Turning this  setting off may
  430.                allow the program to work (but slower).
  431.  
  432.                "SIO_Virtual_RTS_is_HS"  This DOS setting defaults to ON and
  433.                it applies  to  all communications  ports  used by  the  DOS
  434.                session.  When ON,  VSIO treats RTS as a  handshaking signal
  435.                from the DOS session.  When OFF, VSIO passed the RTS setting
  436.                directly to  the hardware.  This setting  MUST be on for all
  437.                high speed DOS communications.   The only application, known
  438.                to  the author, where this signal may (should) be turned off
  439.                is DOS programs that use true half duplex.
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.                                                                           7
  448.  
  449.                       Differences between SIO/VSIO and COM/VCOM
  450.  
  451.           What  follows is  some  of the  differences between  SIO/VSIO and
  452.           COM/VCOM that are know to the author.
  453.  
  454.           1 -  COM.SYS will  automatically seek  out and  support four
  455.                comm   ports,  COM1   through   COM4.     SIO.SYS  will
  456.                automatically seek out and  support only COM1 and COM2.
  457.                If SIO.SYS is to support more than two comm ports, they
  458.                must be defined in the command line that loads SIO.SYS.
  459.                For  example, DEVICE=SIO.SYS  (COM3) (COM4)  will cause
  460.                SIO.SYS to support four comm ports.
  461.  
  462.           2 -  In  the  absence  of  overrides in  the  command  line,
  463.                COM.SYS will seek  out four comm ports  in the sequence
  464.                of I/O ports 3F8h, 2F8h, 3E8h and 2E8h.  The first port
  465.                found in this sequence is given the logical name  COM1,
  466.                the second is COM2 etc.   This means that the comm port
  467.                at  2F8h  could become  COM1.   In  the opinion  of the
  468.                author, this confuses some uses to frustration.
  469.  
  470.                With no  command line  overrides, SIO.SYS uses  a fixed
  471.                I/O port concept.   That is, COM1 is always at I/O port
  472.                3F8h,  COM2 is  always at  2F8h, etc.   Another  way of
  473.                looking  at this is;   if no  comm port  exists at port
  474.                3F8h, then you  do not have  a COM1.  SIO.SYS  will not
  475.                move another  (found) comm  port into the  logical COM1
  476.                slot.
  477.  
  478.           3 -  VSIO  opens a  comm  port for  a  DOS session  with  sharing
  479.                allowed.    VCOM  uses  an  "exclusive  use"  open  for  DOS
  480.                sessions.
  481.  
  482.           4 -  SIO.SYS  always  controls  the  FIFOs  of  the  16550  UART.
  483.                SIO.SYS will  not allow an application program  (OS2 or DOS)
  484.                to disable the FIFOs of a real 16550.
  485.  
  486.           5 -  SIO.SYS  will accept any number  between 50 and  115200 as a
  487.                valid baud  rate.  For  example, if  an application  program
  488.                attempts to set a baud rate of 9990 bps, COM.SYS will reject
  489.                it and SIO.SYS will accept it.
  490.  
  491.           6 -  The last decimal digit of  a baud rate given to SIO  must be
  492.                zero.  SIO.SYS will not support baud rates like 75 or 134.5.
  493.                If given, they will be rounded to 80 and 130 respectively.
  494.  
  495.           7 -  SIO/VSIO execute faster than COM/VCOM.  This means that some
  496.                applications, that are timing  dependant, may not work under
  497.                SIO/VSIO that do work under COM/VCOM.
  498.  
  499.           8 -  VSIO optionally (and by default)  simulates a 16550A for DOS
  500.                sessions.  VCOM simulates a 8250/16450.
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.                                                                           8
  509.  
  510.  
  511.                                 PROBLEMS AND SOLUTIONS
  512.  
  513.           1 -  Port already in use is displayed.
  514.  
  515.                This message is displayed when the  comm port or the IRQ  is
  516.                in use.  If the comm port is not actually in use, the IRQ is
  517.                most likely in use.
  518.  
  519.           2 -  SIO  displays  a warning  message that  the  IRQ for  a port
  520.                appears to be wrong, but the port works.
  521.  
  522.                SIO probably detected more than one IRQ attached to the comm
  523.                port.  This  indicates a possible hardware problem with your
  524.                system that you may want to have checked.
  525.  
  526.           3 - The modem will not initialize.
  527.  
  528.                Configure  your comm  program(s) to  insert a  delay between
  529.                modem  initialization characters  as  they are  sent to  the
  530.                modem.
  531.  
  532.           4 - WinFax does not work well.
  533.  
  534.                The  modem init strings set by WinFax (for some modems) will
  535.                work in the  single-layered comm world  of DOS and  Windows.
  536.                These modem  init strings will not work in the multi-layered
  537.                comm environment used by OS/2.  Specifically, in some cases,
  538.                WinFax  sets Xon/Xoff  flow control  (only) with  the modem.
  539.                Ideally, both Xon/Xoff and  Hardware handshaking needs to be
  540.                set.   If only  one handshake can  be set, set  the modem to
  541.                Hardware handshake.
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.                                                                           9
  550.  
  551.                                   IRQ SHARING ON ISA
  552.  
  553.           Sharing the  same IRQ for  multiple communications  ports on  ISA
  554.           systems is not  for the weak  of heart  (or mind).   If you  have
  555.           problems  with shared IRQs, DO  NOT contact the  author.  Contact
  556.           the board or computer manufacturer for help.
  557.  
  558.           Some general rules are as follows:
  559.  
  560.           1 - Two different  boards (plugged into different slots)  can not
  561.           share the same IRQ.  This is a hardware limitation of ISA systems
  562.           and can  not be corrected by  software.  This means  that you can
  563.           not plug  in two internal modems,  set them for the  same IRQ and
  564.           expect them to work.   This does not apply to PS/2  systems.  The
  565.           problem  of multiple boards sharing the same IRQ was corrected in
  566.           the PS/2's buss design.
  567.  
  568.           2 - SIO can not (will not) share an IRQ with other device drivers
  569.           at  the same time.   SIO releases  IRQs that it  is currently not
  570.           using.    This  is  different  form  how  COM.SYS  works.    This
  571.           difference may show  up as  an unexpected "port  already in  use"
  572.           error that  does not occur with COM.SYS.  I have received reports
  573.           that the SDLC  drivers try  to concurrently share  IRQs with  the
  574.           ASYNC driver.  SIO.SYS will not allow this while COM.SYS will.
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.                                                                          10
  583.  
  584.                     Appendix A, Hardware Port and IRQ Assignments
  585.  
  586.           I have  obtained the following information  from various sources.
  587.           Accuracy is not guaranteed.  In fact, nothing in this document is
  588.           guaranteed.
  589.  
  590.           Addresses and IRQs for COM1 and COM2
  591.  
  592.                COM1 uses 03F8h and IRQ4
  593.                COM2 uses 02F8h and IRQ3
  594.  
  595.           Defacto standard for COM3 and COM4 for PC, XT and AT
  596.  
  597.                COM3 uses 03E8h and IRQ4
  598.                COM4 uses 02E8h and IRQ3
  599.  
  600.           Addresses and IRQ for COM3 through COM8 on the PS/2
  601.  
  602.                COM3 uses 3220h and IRQ3
  603.                COM4 uses 3228h and IRQ3
  604.                COM5 uses 4220h and IRQ3
  605.                COM6 uses 4228h and IRQ3
  606.                COM7 uses 5220h and IRQ3
  607.                COM8 uses 5228h and IRQ3
  608.  
  609.           All PCs (know to the author) prior to the  PS/2 only used 12 bits
  610.           to address  hardware I/0 ports.   Systems prior  to the PS/2  and
  611.           EISA can not address the standard PS/2 addresses for COM3 through
  612.           COM8.   If an AT or  below attempts to address  COM3 through COM8
  613.           using the standard addresses, only the low 12 bits of the address
  614.           are used.   That is,  the high digit  of the  hexadecimal address
  615.           will be ignored.   This means that any  reference to COM3 through
  616.           COM8 will actually address ports 220h through 22Fh.
  617.  
  618.           You  should avoid  expansion boards that  use ports  220h through
  619.           22Fh unless the expansion board is a serial I/O board. 
  620.  
  621.           SIO  will  (attempt  to)  determine   the  hardware  architecture
  622.           (ISA/EISA  and PS/2)  that it  is being  executed on and  use the
  623.           appropriate  hardware  port  addresses  for  COM1  thru  COM4  as
  624.           defaults.
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.                                                                          11
  633.  
  634.                                 Appendix B, SIO Chips
  635.  
  636.  
  637.           The following is a collection of comments developed from hearsay,
  638.           random documents, experience,  and technical specifications.  So,
  639.           take it with a grain of salt.  Order information from the various
  640.           manufactures if you want accurate information.
  641.  
  642.           Very  good   reference   book   are   available   from   National
  643.           Semiconductor Corporation.   The covers  most of the  SIO devices
  644.           (also called UARTs) that you will find in many PCs and clones.  I
  645.           am  not sure  that books  can be  ordered directly  from National
  646.           semiconductor.  They  may   require  that  you  get  it   from  a
  647.           distributor.  In  any case, the  address on the  back of the  one
  648.           manual is:
  649.  
  650.                National Semiconductor Corporation
  651.                2900 Semiconductor Drive
  652.                P.O. Box 58090
  653.                Santa Clara, CA 95052-8090
  654.  
  655.                Tel:(408)721-5000
  656.                TWX:(910)339-9240
  657.  
  658.           8250
  659.  
  660.           As best that I know, the  8250 was the first SIO chip (integrated
  661.           circuit) that  was used  by the IBM  PC and many  clones.   In my
  662.           opinion, it was  a poor choice on  the part of IBM.   I feel many
  663.           superior devices, at  comparable prices, were  readily available.
  664.           At that time, I feel the 8251A or the 8530 would have been better
  665.           choices.  But, they used the 8250 and therefore we must use it.
  666.  
  667.           From  a hardware standpoint the 8250 is a relatively slow device.
  668.           It is advisable that programmers not perform successive inputs or
  669.           outputs to this device.  It seems that software programs can load
  670.           the various registers of the 8250 faster than it can  process the
  671.           information.   The  8250  had  a  total  of  7  registers.    The
  672.           specifications state that 56kb is the maximum baud rate.
  673.  
  674.           8250A
  675.  
  676.           I believe the 8250A  is the 8250 with some bug fixes.   I have no
  677.           idea  what  the bugs  may  have  been.   A  quick  glance at  the
  678.           specifications  shows the speed of the 8250  and 8250A to be much
  679.           the same.   The  8250A added  an 8th  register.   This additional
  680.           register enables software to detect if an 8250 is installed.  The
  681.           specifications state that 56kb is the maximum baud rate.
  682.  
  683.           16450
  684.  
  685.           The 16450 seems to be a  speeded up version of the 8250A.   There
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.                                                                          12
  694.  
  695.           is no  direct way (that  I know  of) for software  to detect  the
  696.           difference between an 8250A and a 16450.  I believe the 16450 was
  697.           developed to  eliminate the need  for software  to insert  delays
  698.           between successive  accesses to  the device.   The specifications
  699.           indicate the 16450 is a much faster device than its predecessors.
  700.           The additional speed is only the speed at which the processor can
  701.           access the  device.  The maximum baud rate for the 16450 is still
  702.           stated at  56kb.  However, I  have been told by  some people that
  703.           they have run the 16450 successfully at much higher  speeds. I do
  704.           not believe there was ever a 16450A.
  705.  
  706.           16C451
  707.  
  708.           The 16C451 is  a CMOS version of the  16450.  CMOS is a  term for
  709.           the material  and manufacturing  process used  to make  the part.
  710.           CMOS typically uses less  power than other technologies.   If you
  711.           are  not  designing hardware,  you should  view  the 16C451  as a
  712.           16450.
  713.  
  714.           16550 (Non A)
  715.  
  716.           It is  hard to  find a  16550 (Non A).   I  was told  by National
  717.           Semiconductor  that they  did everything  they could  to  get all
  718.           16550s back.   SIO will detect a 16550  and tell you if  you have
  719.           one.    I am  told that  the 16550  was  installed in  early PS/2
  720.           systems.
  721.  
  722.           The 16550  was the first  shot at  a FIFOed version  of the  8250
  723.           family  from  National semiconductor.    However, I  was  told by
  724.           National Semiconductor  that  the  FIFOs  of the  16550  are  not
  725.           reliable and  they should not be enabled.  SIO will treat a 16550
  726.           like  a  16450.   In  this  mode, they  are  reliable.   National
  727.           Semiconductor would not  provide me with a  specification for the
  728.           16550.  However, I suspect  its maximum baud rate is the  same as
  729.           the 16550A which is 256kb.
  730.  
  731.  
  732.           16550A, 16550AF and 16550AFN
  733.  
  734.           In the  manuals  that I  have,  National Semiconductor  does  not
  735.           explain  the differences between the  16550A and the  16550AF.  I
  736.           suspect the AF part may have a few bug fixes.  I believe the N in
  737.           AFN  describes  packaging,  ceramic versus  plastic,  DIP  versus
  738.           surface mount etc.
  739.  
  740.           In the  opinion of  the author,  there is  no substitute  for the
  741.           16550A (and its successors) in the 8250 type  series.  The 16550A
  742.           is compatible with most software written for the entire family of
  743.           8250  type devices.  Programs  that are 16550A  aware can provide
  744.           much improved performance over previous devices.
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.                                                                          13
  753.  
  754.           The  maximum  baud rate  for the  16550A  is specified  at 256kb.
  755.           However, due to the hardware design of the PC et al, 115kb is the
  756.           maximum baud rate that can be programmed by software.
  757.  
  758.           The 16550A can be  plugged into the same socket  that contains an
  759.           8250, 8250A  or 16450.  If  your SIO expansion board  has the SIO
  760.           chips  in  sockets,  you can  upgrade  to  the  16550A by  simply
  761.           removing the old chips and replacing them with 16550As.
  762.  
  763.           The key to  the performance increase of the  16550A is its FIFOs.
  764.           It has 16 byte FIFOs for both transmit and receive data.
  765.  
  766.           16550s Made by Western Digital
  767.  
  768.           I have been told, but I have not verified for myself, that 16550s
  769.           made  by Western  Digital have  a problem  with their  FIFOs when
  770.           working at 2400 baud or below.
  771.  
  772.           16C551
  773.  
  774.           The  16C551 is  a CMOS  version of  the 16550AF.   See  the above
  775.           description of  the 16C451 for a discussion of CMOS.  Do not feel
  776.           you need to upgrade from a 16550A or AF to a 16C551.  There is no
  777.           gain from an existing users point of view.
  778.  
  779.           16C552
  780.  
  781.           The 16C552 is two 16C551s on a single chip.
  782.  
  783.           16C554
  784.  
  785.           The 16C554 is four 16C551s on a single chip.
  786.  
  787.           82510
  788.  
  789.           I  believe Intel is the only company that manufactures the 82510.
  790.           The 82510  is feature rich with several  modes of operation.  Its
  791.           default  mode is to operate as  a 16450.  The 82510  has a 4 byte
  792.           FIFO  for both  transmit and  receive  data.   A 4  byte FIFO  is
  793.           sufficient to provide significant performance over a basic 16450.
  794.  
  795.           The  82510 is small in size.  Therefore,  it is found in many lap
  796.           tops.
  797.  
  798.           The 82510 is  somewhat of a sleeper.  I believe  it would be much
  799.           more widely used if Intel had promoted it more.  However, given a
  800.           choice  between  the 82510  and the  16550A,  I would  select the
  801.           16550A.
  802.  
  803.  
  804.  
  805.  
  806.  
  807.  
  808.  
  809.                                                                          14
  810.  
  811.                        Appendix C, Multi-Port Serial I/0 Cards
  812.  
  813.           I have  received many  requests for information  about multi-port
  814.           serial I/O  card.  I will  describe the boards that  I know about
  815.           (or have heard about) here.  I will add  to the list as I receive
  816.           precise information from users or develop it myself.
  817.  
  818.           My personal experience  and testing of SIO  is with a board  from
  819.           B&B computer.   However,  I had  to modify the  board to  make it
  820.           share IRQs.  Therefore I will not discuss this board.
  821.  
  822.           STB 4COM  (ISA buss)
  823.  
  824.           I am very impressed with the STB 4COM card, they  have almost got
  825.           it.   Yes, its the  same company that makes  the VGA cards.   The
  826.           4COM  card uses a 16554  which is the  equivalent of four 16550A.
  827.           Comm ports can use IRQs 2/9, 3, 4, 5, 10, 11, 12, and 15.  Any or
  828.           all  ports can  share IRQs,  and they  have done  this right.   I
  829.           tested SIO  with all four  ports of  the 4COM on  IRQ12 and  they
  830.           worked  correctly.  The user can  select any of the following I/O
  831.           port address for a comm port:  3F8, 2F8, 3E8, 2E8, 1A8, 1E8, 1F8,
  832.           2A8.
  833.  
  834.           I purchased my 4COM  card (for $119) from Steve  Winter, 800-735-
  835.           5266 or 919-286-1502.
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842.  
  843.                                                                          15
  844.  
  845.                                         INDEX
  846.  
  847.           16450 . . . . . . . . . . . . . . . . . . . . . . . . . . . .  11
  848.           16550 Non A . . . . . . . . . . . . . . . . . . . . . . . . .  12
  849.           16550A  . . . . . . . . . . . . . . . . . . . . . . . . . . .  12
  850.           16550AF . . . . . . . . . . . . . . . . . . . . . . . . . . .  12
  851.           16550AFN  . . . . . . . . . . . . . . . . . . . . . . . . . .  12
  852.           16550s Made by Western Digital  . . . . . . . . . . . . . . .  13
  853.           16C451  . . . . . . . . . . . . . . . . . . . . . . . . . . .  12
  854.           16C551  . . . . . . . . . . . . . . . . . . . . . . . . . . .  13
  855.           16C552  . . . . . . . . . . . . . . . . . . . . . . . . . . .  13
  856.           16C554  . . . . . . . . . . . . . . . . . . . . . . . . . . .  13
  857.           8250  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  11
  858.           8250A . . . . . . . . . . . . . . . . . . . . . . . . . . . .  11
  859.           82510 . . . . . . . . . . . . . . . . . . . . . . . . . . . .  13
  860.           Addresses and IRQ for COM3 through COM8 on the PS/2 . . . . .  10
  861.           Addresses and IRQs for COM1 and COM2  . . . . . . . . . . . .  10
  862.           Allow_Access_COMn . . . . . . . . . . . . . . . . . . . . . . . 6
  863.           Appendix A, Hardware Notes  . . . . . . . . . . . . . . . . .  10
  864.           Appendix B, SIO Chips . . . . . . . . . . . . . . . . . . . .  11
  865.           Appendix C, Multi-Port Serial I/0 Cards . . . . . . . . . . .  14
  866.           AUTOMATIC IRQ ASSIGNMENT  . . . . . . . . . . . . . . . . . . . 5
  867.           COMn already in use . . . . . . . . . . . . . . . . . . . . . . 8
  868.           CONFIG.SYS  . . . . . . . . . . . . . . . . . . . . . . . . . . 3
  869.           Defacto standard for COM3 and COM4  . . . . . . . . . . . . .  10
  870.           Differences between SIO/VSIO and COM/VCOM . . . . . . . . . . . 7
  871.           DOS SETTINGS  . . . . . . . . . . . . . . . . . . . . . . . . . 6
  872.           FIFO  . . . . . . . . . . . . . . . . . . . . . . . . . .  12, 13
  873.           GETTING STARTED . . . . . . . . . . . . . . . . . . . . . . . . 3
  874.           Installing SIO/VSIO . . . . . . . . . . . . . . . . . . . . . . 3
  875.           IRQ . . . . . . . . . . . . . . . . . . . . . . . . . . . .  4, 5
  876.           IRQ SHARING ON ISA  . . . . . . . . . . . . . . . . . . . . . . 9
  877.           National Semiconductor Corporation  . . . . . . . . . . . . .  11
  878.           PDD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
  879.           Physical Device Driver  . . . . . . . . . . . . . . . . . . . . 2
  880.           PKUNZIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
  881.                Authentic files  . . . . . . . . . . . . . . . . . . . . . 3
  882.           PROBLEMS AND SOLUTIONS  . . . . . . . . . . . . . . . . . . . . 8
  883.           Quick Start . . . . . . . . . . . . . . . . . . . . . . . . . . 3
  884.           RTS/CTS handshaking . . . . . . . . . . . . . . . . . . . . . . 2
  885.           SIO Chips . . . . . . . . . . . . . . . . . . . . . . . . . .  11
  886.           SIO_Virtual_RTS_is_HS . . . . . . . . . . . . . . . . . . . . . 6
  887.           STB 4COM  . . . . . . . . . . . . . . . . . . . . . . . . . .  14
  888.           UART  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  11
  889.           VDD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
  890.           Virtual Device Driver . . . . . . . . . . . . . . . . . . . . . 2
  891.           Virtualize_16550A_For_COM . . . . . . . . . . . . . . . . . . . 6
  892.           Virtualize_COM_Ports  . . . . . . . . . . . . . . . . . . . . . 6
  893.           WHAT IS SIO . . . . . . . . . . . . . . . . . . . . . . . . . . 1
  894.           WHAT IS VSIO  . . . . . . . . . . . . . . . . . . . . . . . . . 2
  895.           WinFax  . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
  896.